# Create your views here.
from risk.models import *
from risk.serializers import *
from dvadmin.utils.viewset import CustomModelViewSet


class GradeOldViewSet(CustomModelViewSet):
    """
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """
    queryset = GradeOld.objects.all()
    serializer_class = GradeOldSerializer
    create_serializer_class = GradeOldCreateUpdateSerializer
    update_serializer_class = GradeOldCreateUpdateSerializer
    filter_fields = []
    search_fields = []
